package jgl.vajra.driver.part.mine.activity;

import jgl.vajra.driver.R;
import jgl.vajra.driver.databinding.ActivityLieEarnBinding;
import jgl.vajra.driver.manager.IntentManager;
import jgl.vajra.driver.part.mine.contract.LieEarnContract;
import jgl.vajra.driver.part.mine.viewModel.LieEarnViewModel;
import jgl.vajra.driver.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.driver.widget.mvvm.view.BaseMVVMActivity;
import jgl.vajra.driver.widget.utils.ToastUtils;

@CreateViewModel(LieEarnViewModel.class)
public class LieEarnActivity extends BaseMVVMActivity<LieEarnViewModel, ActivityLieEarnBinding>implements LieEarnContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.activity_lie_earn;
    }

    @Override
    public void initView() {
        super.initView();
        mBinding.setView(this);
    }

    //二维码
    @Override
    public void onBusinessCode() {
        IntentManager.toBusinessCodeActivity(this);
    }

    //提现
    @Override
    public void onWithdrawal() {
        IntentManager.toWithdrawalPageActivity(this);
    }

    //佣金明细
    @Override
    public void onCommissionDetails() {
        IntentManager.toCommissionDetailsActivity(this);
    }

    //提现记录
    @Override
    public void onWithdrawalRecord() {
        IntentManager.toWithdrawalRecordActivity(this);
    }

    //普通推广员
    @Override
    public void onGeneralPromoter() {
        ToastUtils.showShort("普通推广员");
    }

    //我的团队
    @Override
    public void onMyTeam() {
        IntentManager.toMyTeamActivity(this);
    }
}
